package cn.golxen.blog.service;

import cn.golxen.blog.commons.vo.*;
import cn.golxen.blog.entity.Essay;

import java.util.List;
import java.util.Set;

public interface EssayService {
    int addEssay(AddEssayVo addEssayVo);
    ResPageListVo getList(PageListVo pageListVo);
    Integer deleteList(List<String> essayIdList);
    Essay getEssayById(String id);
    Integer updateEssayById(UpdateEssayVo updateEssayVo);
    Integer addViewById(String id);
    Integer getCountOfCategory(String category);
    Set<Essay> getEssaySetByCategory(String category);
    Set<Essay> getEssaySetByLabel(String label);
    Integer getCount();
    GetAllCount getAllCount();
    Set<String> getLabelByEssayId(String essayId);
    Set<SearchTitleVo> getEssaySetByTitle(String title);
    Set<ResLabelByEssayIdSetVo> getLabelByEssayIdSet(Set<String> essayId);
    List<GetDateListVo> getDateList();
    List<GetEssayListByDateVo> getEssayListByDate(String date);

}
